<?php
namespace model;

final class User {
	private $id;
	private $firstname = '';
	private $lastname = '';
	private $level;
	private $email = '';
	private $phone = '';

	function getId() {
		return $this->id;
	}

	function setId($id) {
		$this->id = intval($id);
	}

	function getLevel() {
		return $this->level;
	}

	function setLevel($level) {
		$this->level = intval($level);
	}

	function getFirstname() {
		return $this->firstname;
	}

	function setFirstname($firstname) {
		$this->firstname = (string) $firstname;
	}

	function getLastname() {
		return $this->lastname;
	}

	function setLastname($lastname) {
		$this->lastname = (string) $lastname;
	}

	function getEmail() {
		return $this->email;
	}

	function setEmail($email) {
		$this->email = (string) $email;
	}

	function getPhone() {
		return $this->phone;
	}

	function setPhone($phone) {
		$this->phone = (string) $phone;
	}
}